package com.zyy.game.tianlong.network.exception;

/**
 * 业务层错误，在控制层接收处理异常
 *
 * @author relufi
 * @date 2019/8/12 0012
 */
public class ServiceException extends SupportException {
    private int code;

    public ServiceException(int code, String message) {
        super(message);
        this.code = code;
    }

    public ServiceException(int code, String message, Throwable throwable) {
        super(message, throwable);
        this.code = code;
    }

    public ServiceException() {
    }

    public int getCode() {
        return code;
    }
}
